1 00:00:00,000 --> 00:00:07,600 This image PR episode 1,779 before entitled 12-tone music, and my random 12-tone role on the May. 2 00:00:07,600 --> 00:00:11,280 It is posted by John Colp, and in about 14 minutes long. 3 00:00:11,280 --> 00:00:18,000 The summary is an intro to 12-tone music, and my random 12-tone role on the May mask ripped. 4 00:00:18,000 --> 00:00:22,400 This episode of HBR is brought to you by an honest host.com. 5 00:00:22,400 --> 00:00:28,720 Get 15% discount on all shared hosting, with the offer code HBR15. 6 00:00:28,720 --> 00:00:31,120 That's HBR15. 7 00:00:31,120 --> 00:00:48,720 Bit your web hosting that's honest and fair at an honest host.com. 8 00:01:01,120 --> 00:01:14,320 Hey everybody, this is John Colp and Lafayette Louisiana, and I'm excited today because I've got 9 00:01:14,320 --> 00:01:21,440 a special microphone on loan to me from the guy who does our music media area at the University 10 00:01:21,440 --> 00:01:24,080 of Louisiana at Lafayette where I teach. 11 00:01:24,080 --> 00:01:30,400 This is a really fancy, expensive looking, sure microphone that is what would you call this 12 00:01:30,400 --> 00:01:37,120 thing? It's in a shock mount, my clip, and I think it's going to make my voice sound 13 00:01:37,120 --> 00:01:41,760 pretty good. The microphone I used before is a sure SM58, which is more of a live-soundary 14 00:01:41,760 --> 00:01:46,960 enforcement microphone, and this one is much more of a studio microphone, and Chris recommended 15 00:01:46,960 --> 00:01:50,800 that this is the one I should use if I want to do just spoken word. 16 00:01:51,680 --> 00:01:55,840 And so I thought I would take advantage of this opportunity to knock out one of the topics 17 00:01:55,840 --> 00:02:01,520 that has been on my to-do list for a really long time, and that is the 12-tone technique 18 00:02:01,520 --> 00:02:09,760 and my use of a script to generate a random 12-tone row. This whole scripting of the random 19 00:02:09,760 --> 00:02:14,080 12-tone row is something that came about when I got my Raspberry Pi for the first time about 20 00:02:14,080 --> 00:02:22,160 two years ago. And the idea was that I had the Raspberry Pi set up next to my bed, and it was 21 00:02:22,160 --> 00:02:29,280 networked, and so I could theoretically have it play music off the internet, and I used to do that. 22 00:02:29,280 --> 00:02:33,120 I would have it stream radio stations, and stuff like that, like into my pillow speaker, 23 00:02:33,920 --> 00:02:38,960 and I thought, well, I could use it as an alarm clock as well, and I could have it just play 24 00:02:38,960 --> 00:02:45,200 some random audio file from my computer. But then I had the, what to me was a brilliant idea, 25 00:02:45,200 --> 00:02:54,560 and this is from a music nerd point of view of having it generate a new alarm every day, 26 00:02:54,560 --> 00:03:01,760 and have it be my random 12-tone row of the day. Now, to, for this to make sense, I would probably 27 00:03:01,760 --> 00:03:08,640 have to back up a little bit and explain what a 12-tone row is. The 12-tone row is the building 28 00:03:08,640 --> 00:03:15,920 block of 12-tone music. Now, I have to back up even further now, because I have to explain what 12-tone 29 00:03:15,920 --> 00:03:24,240 music is. At the early part of the 20th century, I'm talking now about the years 1908-1912-1913. 30 00:03:25,120 --> 00:03:31,360 A number of composers were experimenting with a tonality, which is the music that does not have a 31 00:03:31,360 --> 00:03:38,160 tonal center. So you can no longer say, for example, this piece is in the key of D major or F minor, 32 00:03:38,160 --> 00:03:45,520 or whatever it might be. This is music that does not have a key. There were corollary movements in the 33 00:03:45,520 --> 00:03:51,200 other arts, I think, like in visual arts, they moved toward abstraction, toward non-representation, 34 00:03:51,200 --> 00:03:59,680 and so, a tonality in music is very similar to abstract art. Now, the leader in this movement was a 35 00:03:59,680 --> 00:04:04,720 guy named Arnold Schermberg, who was a composer in Vienna, and he had a couple of students, Albambarg, 36 00:04:04,720 --> 00:04:11,360 and Anton Weber. And these guys were very much interested in a tonal music, and they did not necessarily 37 00:04:11,360 --> 00:04:20,160 see this as a break with tradition, but rather as a logical next step in the evolution of music 38 00:04:20,160 --> 00:04:28,720 that had been lately brought to what was nearly a tonality by the German composer Ricard Wagner. 39 00:04:28,720 --> 00:04:34,560 Now, Wagner's music sounds very beautiful and mostly tonal, but if you actually look at it, 40 00:04:35,280 --> 00:04:40,480 there are many places in his music where you cannot say for sure what key it's in, even though 41 00:04:40,480 --> 00:04:46,400 you hear very beautiful harmonies and melodies and so forth. And so, Schermberg and his followers 42 00:04:46,400 --> 00:04:53,600 felt like the logical next step was to intentionally abandon tonality and to avoid anything in 43 00:04:53,600 --> 00:05:00,880 their music that would suggest tonality. And so, they consciously avoided octaves and triads and 44 00:05:00,880 --> 00:05:08,640 things like this that suggested traditional tonality. And they were, you know, they had some 45 00:05:08,640 --> 00:05:16,080 music that was modestly successful, I suppose, in their little circles, the general public typically 46 00:05:16,080 --> 00:05:21,760 did not like this music very much. It was not very well received because people heard it as something 47 00:05:21,760 --> 00:05:26,880 that was very dissonant. They couldn't understand it. They didn't know where the composers were 48 00:05:26,880 --> 00:05:33,600 going with this stuff and just thought it was ugly. And the composers themselves, why they, 49 00:05:33,600 --> 00:05:39,200 while they did not necessarily think the music was ugly, they did recognize a certain problem 50 00:05:39,200 --> 00:05:47,680 in as much as they no longer had the basic foundation of musical form that had been in place 51 00:05:47,680 --> 00:05:55,280 for a couple of hundred years and that is key relations tonality in forms such as sonata form, 52 00:05:55,280 --> 00:06:00,880 binary form, things like this. The long-term structure of the piece is based on movement from one 53 00:06:00,880 --> 00:06:06,640 key to another and then back to the home key. And when the music is atonal and has no key, 54 00:06:06,640 --> 00:06:12,480 you don't have this anymore. And so, one of the solutions they had was to write just really short 55 00:06:12,480 --> 00:06:18,080 pieces where movement from one key to another would kind of be irrelevant. Another thing they did 56 00:06:18,080 --> 00:06:23,680 was write vocal music where the poetry that they were setting would give the music its structure. 57 00:06:25,280 --> 00:06:33,200 But around, I don't know, 1920 or so, Arnold Schermberg started to experiment with a new system 58 00:06:33,200 --> 00:06:39,360 that would impose a certain rigor upon a tonal music and that was the 12-tone system. 59 00:06:39,360 --> 00:06:45,440 In the 12-tone system, all 12 pitches of the chromatic scale are considered equal. 60 00:06:46,240 --> 00:06:51,040 And before I go any further, I'm going to play you a chromatic scale. A chromatic scale is 61 00:06:51,680 --> 00:07:00,560 the scale between a note and an octave higher, well, all half-step. It's the scale that has all half-steps 62 00:07:00,560 --> 00:07:14,000 and here's what a chromatic scale sounds like. Pretty, huh? All half-steps. Now, 63 00:07:15,200 --> 00:07:22,720 his idea was to have a single melody that is the structural basis of the piece. This might sound 64 00:07:22,720 --> 00:07:27,360 very familiar. If you heard my episode about the fugue where there was a subject that was the main 65 00:07:27,360 --> 00:07:34,800 idea for the whole piece. In certain ways, it is similar. He also subjects the theme, which is 66 00:07:34,800 --> 00:07:41,760 in this case called a row, a tone row, or sometimes the 12-tone row. He subjects it to the same kind 67 00:07:41,760 --> 00:07:48,080 of manipulation that, say, J.S. Bach would have done to a fugue subject. The row is transposed. 68 00:07:48,080 --> 00:07:53,040 It's inverted. In other words, it's turned upside down. So all of the intervals that went up 69 00:07:53,040 --> 00:07:57,760 in the original would go down in the inversion. It's done in retrograde and so forth. 70 00:07:58,800 --> 00:08:05,360 And so what you come up with is a kind of music that is extremely well structured. It's kind of 71 00:08:05,360 --> 00:08:10,480 fun to analyze these things because you can see where the row is and you get to put together this fancy 72 00:08:10,480 --> 00:08:15,520 thing called a matrix, which shows you all the possible permutations of the row, and you can use 73 00:08:15,520 --> 00:08:21,440 the matrix to help you analyze the music. And so it looks great on paper. It's really kind of fun. 74 00:08:21,440 --> 00:08:28,400 For me, the problem has always been that while I can recognize this rigid structure and appreciated 75 00:08:28,400 --> 00:08:34,960 intellectually, I simply cannot hear it. And so 12-tone music to me still is not all that satisfying. 76 00:08:35,600 --> 00:08:41,520 However, as a project for a Raspberry Pi where I'm trying to do something kind of nerdy and script 77 00:08:41,520 --> 00:08:48,400 something, the random 12-tone row of the day seemed like a genius idea to me. And so I wrote a 78 00:08:48,400 --> 00:08:54,880 bash script, of course, that's kind of what I do. And the bash script takes all 12 pitches of the 79 00:08:54,880 --> 00:09:03,200 chromatic scale and shuffles them and then generates a score. And I use Lily pond as the main 80 00:09:03,200 --> 00:09:10,480 engine for all of this. So my script, I think I'm just in the show notes, I'm going to link 81 00:09:10,480 --> 00:09:16,960 to my 12-tone row of the day web page. And every night at either midnight or when I am or something 82 00:09:16,960 --> 00:09:23,200 like that, the script runs on my server and posts a static HTML page with the 12-tone row of the 83 00:09:23,200 --> 00:09:31,680 day as a little bit of score and also has a play button under it so you can listen to it. And in general 84 00:09:31,680 --> 00:09:38,640 terms, the way this script works is that I spell out all 12 pitches in Lily pond notation. So 85 00:09:38,640 --> 00:09:48,880 c, c sharp d, d sharp e, f sharp and so forth. And then I run them through the shuff command, s, h, 86 00:09:48,880 --> 00:09:57,920 u, f which will take them from their ascending order that I just spoke out to you and shuffle 87 00:09:57,920 --> 00:10:04,960 them all around randomly. And then what I do is add a series of rhythms to them. And I have a 88 00:10:04,960 --> 00:10:10,560 two-do in my script and that is to randomize the rhythms. Now I never did this but there was a guy, 89 00:10:10,560 --> 00:10:16,000 I want to say he was in great Britain somewhere who contacted me after reading my blog post about this 90 00:10:16,000 --> 00:10:22,160 and thought, man, what a cool thing to do. I'm going to try to randomize those rhythms. And he 91 00:10:22,160 --> 00:10:28,080 did it and he came up with a solution and I'll be honest, I don't remember where it is or that. 92 00:10:28,080 --> 00:10:34,880 I don't have it in front of me here. So I apply rhythms using the Lily pond number 93 00:10:34,880 --> 00:10:40,320 like the first rhythm is a quarter note. Then there is a double dotted quarter note, 94 00:10:40,320 --> 00:10:45,920 followed by a sixteenth note, followed by a quarter, a dotted quarter, an eighth, a dotted eighth, 95 00:10:45,920 --> 00:10:53,600 and then a dotted half. And all of these will add up to the right amount of rhythms. 96 00:10:54,320 --> 00:10:59,200 So anyway, I apply some rhythms. The pitches have been shuffled randomly. And then I have a 97 00:10:59,200 --> 00:11:04,960 block of code that will stick all the pitches in the right place in a Lily pond file. And then I run 98 00:11:04,960 --> 00:11:14,240 Lily pond on this file to create the score and to create the MIDI file. After that, there is a 99 00:11:14,240 --> 00:11:24,320 function that will optimize the PNG file by running OPTPNG. And also, it uses the net PBM tools, 100 00:11:24,320 --> 00:11:30,800 which I planned to record an episode about the net PBM tools again later. But it converts the 101 00:11:30,800 --> 00:11:38,640 PNG file to P&M so that it can be worked with and then runs it to PNG again, creating a transparent 102 00:11:38,640 --> 00:11:45,120 background by finding every pixel on the whole thing that is white and turning a transparent. 103 00:11:45,760 --> 00:11:50,400 And then I run the optimized PNG command on it to reduce the file size. 104 00:11:50,400 --> 00:11:59,120 After that, there is a function that creates a block of static HTML and sticks the image and 105 00:11:59,120 --> 00:12:06,080 the image in there. And then it also puts an HTML5 audio player. And at some point, there must be, 106 00:12:06,080 --> 00:12:14,240 oh yeah, here it is. I use timidity to play the MIDI file and pipe it through lame the MP3 107 00:12:14,240 --> 00:12:24,000 engine. And then I use MP3 to org on that MP3 file to make an org version. So I end up with a 108 00:12:24,000 --> 00:12:31,920 MIDI version MP3 and org. And all of those are stuck in the right place and a web page is generated 109 00:12:31,920 --> 00:12:38,320 that has the image, the audio file. And also has a link to my script that does the whole thing. 110 00:12:38,320 --> 00:12:44,160 Now, let's listen to one example. I just generated this one a few minutes ago. Here's an example 111 00:12:44,160 --> 00:12:57,920 of a 12-tone row of the day. Beautiful isn't it? Wouldn't you like to be woken up by that every day? 112 00:12:57,920 --> 00:13:03,920 Now, I never did actually use this as an alarm like the original intent was, but I still periodically 113 00:13:03,920 --> 00:13:10,400 will go back to my 12-tone row of the day page and just play the example. A new one is generated 114 00:13:10,400 --> 00:13:16,240 every day. However, I probably don't look it more than once one of them per month. Anyway, 115 00:13:16,240 --> 00:13:22,560 hope you guys have enjoyed hearing about that technique from the early 20th century, the 12-tone 116 00:13:22,560 --> 00:13:27,680 technique. And I'll have links in the show notes to more information about that if you're at all 117 00:13:27,680 --> 00:13:33,440 curious. But thanks for listening. This has been John Colp on a new microphone in Lafayette, 118 00:13:33,440 --> 00:13:44,480 Louisiana, and I am signing off now. Bye. 119 00:14:03,520 --> 00:14:09,040 How easy it would be is. Heck, I probably radio was found by the digital.com and the 120 00:14:09,040 --> 00:14:14,560 informomicon computer club, and it's part of the binary revolution at binref.com. 121 00:14:14,560 --> 00:14:19,200 If you have comments on today's show, please email the host directly. Leave a comment on the 122 00:14:19,200 --> 00:14:25,360 website or record a follow up episode yourself. Unless otherwise status, today's show is released 123 00:14:25,360 --> 00:14:36,880 on the creative comments, attribution, share a like, to the dot own license.